package com.demo.sortcsv.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Lyn(tanqunlin@huoyunren.com)
 * @date 2015年1月14日 下午5:53:50
 */
@Getter
@Setter
public class CanDetail implements Serializable {
    /**  */
    private static final long serialVersionUID = 6960034454447384204L;
    public static final int TYPE_CTBOX = 0;
    public static final int TYPE_SMART_CAN = 1;
    /**
     * imei
     */
    private String imei;

    /**
     * 0: ctbox明细 1: smart明细
     */
    private int type;
    /**
     * 采集时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 发动机转速
     */
    private int engineSpeed = -1;
    /**
     * 瞬时油耗
     */
    private double engineFuel = -1;
    /**
     * 总油耗
     */
    private double engineTotalFuel = -1;
    /**
     * 刹车，0:刹车释放/1：刹车压紧
     */
    private int brake = -1;

    /**
     * 车速
     */
    private double vehicleSpeed = -1;

    /**
     * 车辆总里程
     */
    private double totalDistance = -1;

    /**
     * 节流阀（油门强度）
     */
    private int throttleValve = -1;

    /**
     * 发动机冷却液温度
     */
    private double engineCoolantTemperature = -1;
    /**
     * 燃油压力
     */
    private int fuelPressure = -1;
    /**
     * 进气歧管绝对压力
     */
    private double manifoldAbsolutePressure = -1;

    /**
     * 发动机进气口温度
     */
    private double engineInletTemperature = -1;
    /**
     * 空气流量
     */
    private double airFlow = -1;

    /**
     * 节气门位置传感器
     */
    private double solarTermDoorPositionSensor = -1;

    /**
     * 发动机启动后运行时间
     */
    private double engineRunningTime = -1;

    /**
     * 冲程油量
     */
    private int strokeFuel = -1;



    @Override
    public String toString() {
        return "CanDetail [imei=" + imei + ", type=" + type + ", createTime=" + createTime
                        + ", engineSpeed=" + engineSpeed + ", engineFuel=" + engineFuel
                        + ", engineTotalFuel=" + engineTotalFuel + ", brake=" + brake
                        + ", vehicleSpeed=" + vehicleSpeed + ", totalDistance=" + totalDistance
                        + ", throttleValve=" + throttleValve + ", engineCoolantTemperature="
                        + engineCoolantTemperature + ", fuelPressure=" + fuelPressure
                        + ", manifoldAbsolutePressure=" + manifoldAbsolutePressure
                        + ", engineInletTemperature=" + engineInletTemperature + ", airFlow="
                        + airFlow + ", solarTermDoorPositionSensor=" + solarTermDoorPositionSensor
                        + ", engineRunningTime=" + engineRunningTime + ", strokeFuel=" + strokeFuel
                        + "]";
    }

}
